<div class="nav">
<?php foreach($data as $navGroup=>$child):?>
	<h2 class="title" style="border-bottom: 1px solid #ccc"><?php echo $navGroup?></h2>
	<?php foreach(array_keys($child) as $key):?>
	<div class="item"><a href="<?php echo $child[$key]?>"><?php echo $key?></a></div>
	<?php endforeach?>
<?php endforeach?>
</div>